package com.libraryManage.entity;

import java.io.Serializable;
import java.util.Date;

public class BookManageDo implements Serializable {
    private Integer bookId;

    private String bookName;

    private String bookAuthor;

    private String bookPub;

    private Integer bookNum;

    private Integer bookSort;

    private Date bookRecord;

    private static final long serialVersionUID = 1L;

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName == null ? null : bookName.trim();
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor == null ? null : bookAuthor.trim();
    }

    public String getBookPub() {
        return bookPub;
    }

    public void setBookPub(String bookPub) {
        this.bookPub = bookPub == null ? null : bookPub.trim();
    }

    public Integer getBookNum() {
        return bookNum;
    }

    public void setBookNum(Integer bookNum) {
        this.bookNum = bookNum;
    }

    public Integer getBookSort() {
        return bookSort;
    }

    public void setBookSort(Integer bookSort) {
        this.bookSort = bookSort;
    }

    public Date getBookRecord() {
        return bookRecord;
    }

    public void setBookRecord(Date bookRecord) {
        this.bookRecord = bookRecord;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bookId=").append(bookId);
        sb.append(", bookName=").append(bookName);
        sb.append(", bookAuthor=").append(bookAuthor);
        sb.append(", bookPub=").append(bookPub);
        sb.append(", bookNum=").append(bookNum);
        sb.append(", bookSort=").append(bookSort);
        sb.append(", bookRecord=").append(bookRecord);
        sb.append("]");
        return sb.toString();
    }
}